<?php

namespace app\store\controller\wlyunshu;
use app\store\controller\Controller;
use app\common\library\wanshun\Jik ;

/**
 * 会员等级
 * Class Grade
 * @package app\store\controller\user
 */
class Guonei extends Controller
{
    /**
     * 订单调度
     * @return mixed
     * @throws \think\exception\DbException
     */
    public function order_diaodu()
    {
        $nowdate = date('Y-m-d');

        $jik = new Jik();

        $cys_list = $jik->getchengyunfl();

        $cys = [];

        foreach ($cys_list['data'] as $key => $value) {
            $cys[] = [
                'cSUPLKIND_NO' => $value['cSUPLKIND_NO'],
                'cSUPLKIND_NM' => $value['cSUPLKIND_NM'],
            ];
        }

        //检索订单
        
        $arr = $jik->getpricetype();
        $feiyong = [];

        foreach($arr['data'] as $key => $value) {
            if($value['cPAYITEM_MAIN_NO'] == 101){
                $feiyong[] = $value;
            }
        }

        // p($feiyong);
        // die();


        return view('orderdiaodu',compact('nowdate','cys','feiyong'));
    }

    /**
     * 车辆紧急调度
     * @return mixed
     * @throws \think\exception\DbException
     */
    public function car_diaodu()
    {
        $nowdate = date('Y-m-d');
        return view('cardiaodu',compact('nowdate'));
    }

    /**
     * 车辆紧急调度
     * @return mixed
     * @throws \think\exception\DbException
     */
    public function test()
    {
        return view('test');
    }
    
    /**
     * 车辆紧急调度
     * @return mixed
     * @throws \think\exception\DbException
     */
    public function test1()
    {
        return view('test1');
    }
    
    /**
     * 车辆紧急调度
     * @return mixed
     * @throws \think\exception\DbException
     */
    public function car()
    {
        return view('car');
    }
    
    //1.运输方式
    public function transport_mode(){
        return view('transport_mode');
    }
    
    //2.运输范围
    public function transport_scope(){
        return view('transport_scope');
    }
    
    //3.运输流程
    public function transport_flow(){
        return view('transport_flow');
    }
    
    //4.物流追踪点
    public function logistics_tracking_point(){
        return view('logistics_tracking_point');
    }
    
    //5.运输路线开通
    public function opening_transportation(){
        return view('opening_transportation');
    }
    
    //6.承运商分类
    public function carrier_classification(){
        return view('carrier_classification');
    }
    
    //7.承运商资料
    public function carrier_document(){
        return view('carrier_document');
    }
    
    //8.承运商承运价
    public function carrier_price(){
        return view('carrier_price');
    }
    
    //9.车辆类别设置
    public function vehicle_category_settings(){
        return view('vehicle_category_settings');
    }
    
    //10.车辆尺寸设置
    public function vehicle_size_settings(){
        return view('vehicle_size_settings');
    }
    
    //11.车辆资料管理
    public function vehicle_info_settings(){
        return view('vehicle_info_settings');
    }
    
    
}
